<template>
  <footer class="footer">
    <div class="footer-container">
      <div class="footer-content">
        <div class="footer-info">
          <h3 class="footer-title">校园活动管理系统</h3>
          <p class="footer-description">
            为学生提供便捷的活动发布、报名和管理服务，促进校园文化生活的丰富多彩。
          </p>
        </div>
        <div class="footer-links">
          <h4 class="footer-links-title">快速链接</h4>
          <ul class="links-list">
            <li><router-link to="/">首页</router-link></li>
            <li><router-link to="/activities">活动列表</router-link></li>
            <li><router-link to="/activity-edit">发布活动</router-link></li>
          </ul>
        </div>
        <div class="footer-contact">
          <h4 class="footer-contact-title">联系我们</h4>
          <p>邮箱：support@campus.edu</p>
          <p>电话：123-4567-8910</p>
        </div>
      </div>
      <div class="footer-bottom">
        <p>&copy; {{ currentYear }} 校园活动管理系统. 保留所有权利.</p>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'AppFooter',
  data() {
    return {
      currentYear: new Date().getFullYear()
    }
  }
}
</script>

<style scoped>
.footer {
  background-color: #f5f7fa;
  color: #606266;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-info,
.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #606266;
}

.footer-links-title,
.footer-contact-title {
  font-size: 16px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 15px;
}

.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  margin-bottom: 10px;
}

.links-list a {
  color: #606266;
  text-decoration: none;
  transition: color 0.3s;
}

.links-list a:hover {
  color: #409eff;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e4e7ed;
  font-size: 12px;
  color: #909399;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-info,
  .footer-links,
  .footer-contact {
    margin-bottom: 30px;
  }
}
</style>